﻿using EFModel;
using IServices;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Y2.Filters;

namespace Y2.Controllers
{
    [LoginFilter]
    //职位发布登记表
    public class engage_major_releaseController : Controller
    {
        private readonly Iengage_major_release he;

        public engage_major_releaseController(Iengage_major_release he)
        {
            this.he = he;
        }

        public IActionResult engage_major_release()
        {
            return View();
        }
        //三级联动
        public async Task<string> Dg()
        {
            return await he.Dg();
        }
        //二级联动
        public async Task<string> Dgto()
        {
            return await he.Dgto();
        }
        //职位发布添加
        public async Task<int> Insert(engage_major_release release)
        {
            return await he.Insert(release);
        }
    }
}
